package com.xxgc.zde.service;

import com.baomidou.mybatisplus.core.toolkit.AES;

public class TestPassword {
    public static void main(String[] args) {
        String randomKey="1234567899876543";
        System.out.println("randomKey="+randomKey);
        String url="jdbc:mysql://localhost:3306/zde?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC";
        String name="root";
        String pass="0403291XQjc";
        String urlEncryptedData = AES.encrypt(url, randomKey);
        String nameEncryptedData = AES.encrypt(name, randomKey);
        String passEncryptedData = AES.encrypt(pass, randomKey);
        System.out.println(urlEncryptedData);
        System.out.println(nameEncryptedData);
        System.out.println(passEncryptedData);
    }
}
